const { Files } = require('../utils/db')

// 文件上传
const upload = (filename) => {
  const fileInstance = new Files({
    filename,
    createTime: new Date().getTime()
  })

  return fileInstance.save()
}

exports.upload = upload
